<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<?xml version="1.0" encoding="UTF-8"?>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page session="true"%>
<%@ page isELIgnored="false"%>
<c:set var="contextPath" value="${pageContext.request.contextPath}" />
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Данные пользователя</title>

</head>

<form:form name='userDataForm' commandName="userData"
	action="${contextPath}/data/save" method='POST'>
	<table>
		<tr>
			<td>Фамилия:</td>
			<td><form:input path='lastName' value="${userData.lastName}" /></td>
		</tr>
		<tr>
			<td>Имя:</td>
			<td><form:input path='firstName' value="${userData.firstName}" /></td>
		</tr>
		<tr>
			<td>Отчество:</td>
			<td><form:input path='patronymic' value="${userData.patronymic}" /></td>
		</tr>
		<tr>
			<td>Номер паспорта:</td>
			<td><form:input path='passport' value="${userData.passport}" /></td>
		</tr>
		<tr>
			<td colspan='2'><input name="save" type="submit"
				value="Сохранить" /></td>
			<td colspan='2'><input name="save" type="reset" value="Сброс" /></td>
		</tr>
	</table>
</form:form>

</body>
</html>